package com.example.system.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 *
 * @author 王令
 * @since 2022-10-28
 */
@Data
@Accessors(chain = true)
public class DictItemDto {

    @NotEmpty(message = "字典项名不能为空")
    @Size(max = 16, message = "name不能超过16位")
    private String name;

    @NotEmpty(message = "字典项值不能为空")
    @Size(max = 16, message = "value不能超过16位")
    private String value;

}
